else
{
/* Retrieve desired size for visible children */
-
i = 0;
children = box->children;
while (children)
&sizes[i].natural_size);
size -= sizes[i].minimum_size;
+ size -= child->padding * 2;
spreading[i].index = i;
spreading[i].child = child;
child_allocation.width = sizes[i].minimum_size;
child_allocation.x = x + (child_size - child_allocation.width) / 2;
}
-
+
if (direction == GTK_TEXT_DIR_RTL)
child_allocation.x = allocation->x + allocation->width - (child_allocation.x - allocation->x) - child_allocation.width;
if (packing == GTK_PACK_START)
- x += child_size + box->spacing;
+ {
+ x += child_size + box->spacing;
+ }
else
- x -= child_size + box->spacing;
+ {
+ x -= child_size + box->spacing;
+
+ child_allocation.x -= child_allocation.width;
+ }
}
else
{
}
if (packing == GTK_PACK_START)
- y += child_size + box->spacing;
+ {
+ y += child_size + box->spacing;
+ }
else
- y -= child_size + box->spacing;
+ {
+ y -= child_size + box->spacing;
+
+ child_allocation.y -= child_allocation.height;
+ }
}
gtk_widget_size_allocate (child->widget, &child_allocation);